#region head comment
/*
Code generate by YhdSdkTool.
email:starpeng@vip.qq.com
2013-01-21 23:00:57:363 +08:00
*/
#endregion

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using YhdSdk.Domain;
using YhdSdk.Domain.Logistics;
using YhdSdk.Response.Logistics;

namespace YhdSdk.Request.Logistics
{
    /// <summary>
    /// 获取仓库信息
    ///<para></para>
    ///<para>根据仓库id获取相应的仓库信息及仓库的配送范围，如果不传入仓库id就获取所有的仓库信息及配送范围。获取</para>
    ///<para>成功，就返回成功的仓库个数，获取失败就返回失败记录数及相应的错误描述信息</para>
    /// </summary>
    public class YhdLogisticsWarehouseInfoGetRequest : IYhdRequest<YhdLogisticsWarehouseInfoGetResponse>
    {
        /// <summary>
        /// 仓库ID
        /// </summary>
        /// <example>1</example>
        [XmlElement("warehouseId")]
        public Nullable<Int64> WarehouseId
        {
            get;
            set;
        }

        /// <summary>
        /// Api接口名称
        /// </summary>
        public String ApiName
        {
            get{ return "yhd.logistics.warehouse.info.get"; }
        }

        /// <summary>
        /// 获取参数列表
        /// </summary>
        public IDictionary<string, string> GetParameters()
        {
            YhdDictionary parameters = new YhdDictionary();
            parameters.Add("warehouseId" ,this.WarehouseId);
            return parameters;
        }

        /// <summary>
        /// 验证参数
        /// </summary>
        public void Validate()
        {
        }

    }
}
